//
//  AddDeviceCell.m
//  AILock
//
//  Created by 谭亚明 on 2020/6/18.
//  Copyright © 2020 tym. All rights reserved.
//

#import "AddDeviceCell.h"
#import "UIImageView+YPImage.h"
@interface AddDeviceCell()

@property(nonatomic,weak) IBOutlet UILabel *nameLable;
@property(nonatomic,weak) IBOutlet UIImageView *headImage;
@end

@implementation AddDeviceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.contentView.backgroundColor = viewBGColor;
    self.contView.layer.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0].CGColor;
    self.contView.layer.shadowColor = [UIColor colorWithRed:230/255.0 green:230/255.0 blue:230/255.0 alpha:0.5].CGColor;
    self.contView.layer.shadowOffset = CGSizeMake(0,2.5);
    self.contView.layer.shadowOpacity = 1;
    self.contView.layer.shadowRadius = 15;
}

-(void)setTypeModel:(EquipmentTypeModel *)typeModel{
    _typeModel = typeModel;
    _nameLable.text = _typeModel.typeName;
    
    [self.headImage yp_setImageUlr:[typeModel getEquipmentImage] placeHolder:@"icon_locklist2"];
}

+ (CGFloat)cellForHeight{
    return 104;
}

+(NSString*)identifier{
    return @"AddDeviceCell";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
